/**
 * 文件处理
 */
CommonUtils.regNamespace("step", "index");

step.index = (function(){
	var _getStepInfo = function(caseId,projectId,classId,totalCase,projectName){
		var path= contextPath+"/case/getStepInfo";
		var params = {"caseId":caseId,"projectId":projectId,"classId":classId,"totalCase":totalCase,"projectName":projectName};
		$.ajax({
	        type:"POST",
	        url:path,
	        data:JSON.stringify(params),
	        contentType:"application/json; charset=utf-8",
	        dataType: "html",
	        async:false,
	        success:function(respone){
	        	if(respone){
	        			$("#uiContent").html(respone);
	        	}else{
	        		alert("加载测试报告失败");
	        	}
	        },error:function(respone){
	            alert("请求发生错误:"+respone);
	        }
	    });
	};
	return {
		getStepInfo:_getStepInfo
	};
})();